import * as Vue from "vue";
import { defineComponent } from "vue";
import app from "./app-home.vue";
import { navigateclicklistener } from "./navigateclicklistener";
import { scrollIntoViewclicklistener } from "./scrollIntoViewclicklistener";
import { sidebarsubheaderclicklistener } from "./sidebarsubheaderclicklistener";

export const appoptions = defineComponent({
    render() {
        return Vue.h(app);
    },
    mounted() {
        if (process.env.PRERENDER) {
            console.log(this.$el);
            this.$el.addEventListener("click", navigateclicklistener, {});
        }

        this.$el.addEventListener("click", scrollIntoViewclicklistener, {});
        this.$el.addEventListener("click", sidebarsubheaderclicklistener, {});
    },
});
